import Vue from 'vue'
import Router from 'vue-router'
import home from "../pages/Home";
import Issus from "../homeSubPages/issus";
import Project from "../homeSubPages/project";
import Team from "../homeSubPages/team";
import IssusDetail from "../homeSubPages/IssusDetail"
import ProjectAnlisy from "../homeSubPages/projectAnlisy"
import IssusControl from "../homeSubPagesAdmin/issusControl"
import ProjectControl from "../homeSubPagesAdmin/projectControl"
import Promission from "@/homeSubPagesAdmin/promission"
import TeamControl from "../homeSubPagesAdmin/teamControl"
import UserControl from "@/homeSubPagesAdmin/userControl"




Vue.use(Router)

export default new Router({
    mode: "history",
    routes: [
        {
            path: '/',
            redirect: '/home'
        }
        ,
        {
            path: '/home',
            name: '/home',
            component: home,
            children: [
                {
                    path: '/home/issus',
                    name: '/home_issus',
                    component: Issus,
                },
                {
                    path: '/home/project',
                    name: '/home_project',
                    component: Project,
                },
                {
                    path: '/home/projectAnlisy',
                    name: '/home_projectAnlisy',
                    component: ProjectAnlisy
                },
                {
                    path: '/home/team',
                    name: '/home_team',
                    component: Team
                },
                {
                    path: '/issusDetail',
                    name: 'issus-detail',
                    component: IssusDetail
                },
                {
                    path: '/issusControl',
                    name: 'issus-control',
                    component: IssusControl
                },
                {
                    path: '/projectControl',
                    name: 'project-control',
                    component: ProjectControl
                },
                {
                    path: '/promission',
                    name: 'promission',
                    component: Promission
                },
                {
                    path: '/teamControl',
                    name: 'team-control',
                    component: TeamControl
                },
                {
                    path: '/userControl',
                    name: 'user-control',
                    component: UserControl
                },
            ]
        },

    ]
})
